<?php 
$this->activemenu='i3';
?>
<div class="wrr-m">
<div class="stripNav">
<ul>
<li class="tab1"><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/category',array('alias'=>'tin-tuc'));?>" <?php if($alias=='tin-tuc') echo 'class="current"';?>>Tin tức</a></li>
<li class="tab2"><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/category',array('alias'=>'bao-tri'))?>" <?php if($alias=='bao-tri') echo 'class="current"';?>>Bảo trì</a></li>
<li class="tab3"><a href="<?php echo Yii::app()->createUrl('/site_frontend/index/category',array('alias'=>'su-kien'))?>" <?php if($alias=='su-kien') echo 'class="current"';?>>Sự kiện</a></li></ul>
</div>

<div class="bhd">
<?php if($Article):?>
<table width="100%" cellspacing="0" cellpadding="5">
<tr class="head"><td width="100"><span style="color: #00a2ff;font-weight: 700">Thời gian</span></td>
<td width="120"><span style="color: #00a2ff;font-weight: 700">Tiêu đề</span></td>
<td><span style="color: #00a2ff;font-weight: 700">Nội dung</span></td>
</tr>
<?php foreach ($Article as $key => $value):
$year = date('Y',strtotime($value['created']));
$month = date('m',strtotime($value['created']));
$link = Yii::app()->createUrl('/site_frontend/index/detail',array('alias'=>$value['alias'],'cat'=>$value['cat_alias'],'year'=>$year,'month'=>$month));
?>
<tr><td width="100" valign="top"><?php echo date("d/m/Y",strtotime($value['created']))?></td>
<td width="120" valign="top" align="left"><?php echo $value['cat_title'];?></td>
<td><a href="<?php echo $link;?>"><?php echo $value['title'];?></a></td></tr>
<?php endforeach;?>
</table>

<?php endif;?>
<div style="background: #000;height: 2px;margin: 10px 0;clear: both">&nbsp;</div>
<?php 
$this->widget('ext.widgets.Pagination',
			array(
				'pages' => $page,
				'maxButtonCount'=>$itemOnPaging,
				));
?>
</div>
</div>